<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    ul {
      width: 940px;
      height: 440px;
      /* background-color: chartreuse; */
      border: 1px solid #666;
      padding: 10px;
    }

    ul li {
      list-style: none;

      float: left;
    }

    .ps1 {
      width: 300px;
      height: 260px;
      background-color: pink;
    }

    .ps2 {
      width: 240px;
      height: 260px;
      background-color: blue;
    }

    .ps3,
    .ps4 {
      width: 200px;
      height: 130px;
    }

    .ps3 {
      background-color: yellow;
    }

    .ps4 {
      background-color: green;
    }

    .ps7 {
      width: 300px;
      height: 180px;
      background-color: blue;
    }

    .ps8,
    .ps9 {
      width: 160px;
      height: 180px;
    }

    .ps8 {
      background-color: darkorchid;
    }

    .ps9 {
      background-color: darkseagreen;
    }
  </style>
</head>

<body>
  <ul>
    <li class="ps1">粉色</li>
    <li class="ps2">蓝色</li>
    <li class="ps3">黄色</li>
    <li class="ps4">绿色</li>
    <li class="ps4">绿色</li>
    <li class="ps3">黄色</li>
    <li class="ps7">蓝色</li>
    <li class="ps8">紫色</li>
    <li class="ps9">绿色.</li>
    <li class="ps8">紫色</li>
    <li class="ps9">绿色</li>
  </ul>
</body>

</html>